/*部门模拟数据,作者:高振中,日期:2018-08-10 09:21:48*/
'use strict';
var Mock = require('mockjs')
var Random = Mock.Random;
module.exports = {

    'POST /api/adminDept/queryPage': function (req, res, next) {
        var data = Mock.mock({
            "content|10": [{
                dept_id: "@integer(100,200)",//主键
                branch_id: "@integer(100,200)",//门店主键
                parent_id: "@integer(100,200)",//上级ID
                name: "@word(5,10)",//部门名称
                enable: "@integer(100,200)",//可用标志
                remark: "@word(5,10)",//备注
            }],
            "number": '@integer(100,200)',
            "size": 10,
            "totalElements": 500,
        });
        setTimeout(function () {
            res.json(data);
        }, 500);
    },
    'POST /api/adminDept/update': function (req, res, next) {
        setTimeout(function () {
            res.json({});
        }, 500);
    },
    'POST /api/adminDept/save': function (req, res, next) {
        setTimeout(function () {
            res.json({});
        }, 500);
    },
    'POST /api/adminDept/queryList': function (req, res, next) {
        var data = Mock.mock({
            "content|10": [{
                dept_id: "@integer(100,200)",//主键
                branch_id: "@integer(100,200)",//门店主键
                parent_id: "@integer(100,200)",//上级ID
                name: "@word(5,10)",//部门名称
                enable: "@integer(100,200)",//可用标志
                remark: "@word(5,10)",//备注
            }]
        });
        setTimeout(function () {
            res.json(data.content);
        }, 500);
    },
    'POST /api/adminDept/getTree': function (req, res, next) {
        var data = Mock.mock({
            "content|10": [{
                dept_id: "@integer(100,200)",//主键
                branch_id: "@integer(100,200)",//门店主键
                parent_id: "@integer(100,200)",//上级ID
                name: "@word(5,10)",//部门名称
                enable: "@integer(100,200)",//可用标志
                remark: "@word(5,10)",//备注
            }]
        });
        setTimeout(function () {
            res.json(data.content);
        }, 500);
    },
    'POST /api/adminDept/delete': function (req, res, next) {
        setTimeout(function () {
            res.json({});
        }, 500);
    },
}